package com.itheima.model.ai.pojos;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = "chat_sessions")
public class ChatSession {
    
    @Id
    private String id;
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 会话标题
     */
    private String title;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 更新时间
     */
    private Date updateTime;
    
    /**
     * 消息数量
     */
    private Integer messageCount;
    
    /**
     * 是否已删除
     */
    private Boolean deleted;
}

